home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 4
/
PC World Interactive 4.iso
/
share
/
ofis
/
act3ts
/
144_10
/
RECONFIG.IN9
/
RECONFIG.INF
Wrap
INI File
|
1997-09-24
|
19KB
|
852 lines
; Reconfig.inf - created for Auto Reconfiguration
; Switches:
;
; 10 - Is file in use?
; 14 - CheckDiskSpace
; 17 - VerifyIni (used after Copy())
;
; 22 - Is Windows 95? (NOT)
; 23 - Is Windows NT? (NOT)
; 24 - Is Win32s? (NOT)
; 25 - Is Windows NT 4.0? (NOT)
;
; 40 - Is Windows 95 or NT 4.0?
; 41 - Is Windows NT?
; 42 - Is Windows 3.1?
; 43 - Is Windows NT 4.0?
; 44 - Win NT 4.0 or Win 95
; 45 - Win NT 4.0 or 3.51
;
; *** 95 to 96 - DiskSpaceError
; 97 - Reboot? (Finish Data Panel)
; 98 - Restart? (Finish Data Panel)
; 99 - Continue? (Finish Data Panel)
;
; Target:
;
; 0 - root destination folder
; 1 to 4 - other folders
; 5 - Symantec shared folder
; 6 - Symantec LiveUpdate folder
;
;
[WindowsVersion]
3.1
"ACT! 3.0 requires Windows NT/95"
[InstallVersion]
4.2
[CompressionChars]
LZW = "8"
ZIP = "9"
; *************************** Starting Process *******************************
[Process]
SetNumberOfTargets(50)
; *** Save installer files onto user drive
Backup(bakNewInstallDlls)
Backup(bakExamReg)
Backup(bakIsNT40)
MakeFilesReadWrite(rwNewInstallDlls)
MakeFilesReadWrite(rwIsNT40)
; *** Initialize Memory
CallProcEx(LoadMe)
; *** Check Windows version number
switch40 = FALSE ;Win95
switch41 = FALSE ;WinNT 3.51
switch42 = FALSE ;Win 32s
switch43 = FALSE ;WinNT 4.0
switch44 = FALSE ;WinNT 4.0 or 95
switch45 = FALSE ;WinNT 4.0 or 3.51
switch46 = FALSE ;Dual Boot
switch40 = CallProcEx(IsWindow95)
switch41 = CallProcEx(IsWindowNT)
switch42 = CallProcEx(IsWin32s)
#if (switch40)
switch44 = TRUE
#else
#if (switch41)
switch43 = CallProcEx(IsNT40)
switch45 = TRUE
#if (switch43)
switch41 = FALSE
switch44 = TRUE
#endif
#endif
#endif
;* TRUE -> do not install
;* set defaults for switches used in disks.inf
switch22=TRUE ;Win 95
switch23=TRUE ;Win NT 3.51
switch24=TRUE ;Win 32s
switch25=TRUE ;Win NT 4.0
;* if Win95
#if (switch40)
switch22=FALSE ;is Win 95
#endif
;* if WinNT 3.51
#if (switch41)
switch23 = FALSE ;NT 3.51
#endif
;* if WinNT 4.0
#if (switch43)
switch25 = FALSE ;NT 4.0
#endif
#ifnot (switch42)
switch50 = VerifyIni(verAutoUpgradePresent)
#if (switch50)
switch50 = MessageCancel(msgAskReconfig)
#endif
#else
switch50 = FALSE
MessageBox(msgBadOppSys)
#endif
#ifnot (switch50)
goto(endReconfig)
#endif
; TAGET is set here so it is the current dir in all further branches
ResetTarget(rstTargetIsSource)
; need to branch so the source is changed to [source]\autorcon
Branch(infPerformUpgrade)
:endReconfig
CallProcEx(FreeMe)
MakeFilesReadWrite(rwExamReg)
MakeFilesReadWrite(rwNewInstallDlls)
MakeFilesReadWrite(rwIsNT40)
MakeFilesReadWrite(rwLUClean)
Delete(delExamReg)
Delete(delNewInstallDlls)
Delete(delIsNT40)
Delete(delLUClean)
Exit()
; ***************************** Upgrading Process ******************************
; Targets:
; 0 = Installation dir c:\act
; 1 = Win 95/NT system dir
; 2 = Win 3.1 system dir
; 3 = undefined
; 4 =
; 5 = Symantec shared dir
; 6 = LiveUpdate dir
;
; Switch:
; 50 = Ok to upgrade (both setup and user)
; 47 = system reports dual boot
; 48 = Win 95/NT and Win 3.1 dir's are the same
; 49 = Win 3.1 system files found
[PerformUpgrade]
ResetTarget(rstShared)
ResetTarget(rstLiveUpdate)
; if it's a dual boot machine we need to find the
; old system dir to get the mfc and other files
; if the act.ini file is present the other files will
; be present also (if they're not we need to reinstall)
switch47 = VerifyIni(verDualBoot)
; setup for finding the system dir loop
ResetTarget(rstTarget1AsSystem) ;start with system dir
ResetTarget(rstTarget3AsOldWin)
ResetTarget(rstTarget2AsOldSys) ;start with WINDOWS\"system" dir (for NT)
switch48=TRUE ;true if files are in current system dir
switch49=Exists(extOldSysFiles) ;look for mfc and other system files
:loopFindOldSysDir
#ifnot (switch49)
#if (switch48)
switch50 = MessageCancel(msgAskSysPath) ;give the user an out
#else
switch50 = MessageYesNo(msgBrowseAgain)
#endif
#ifnot (switch50)
goto(endPerformUpgrade) ;exit reconfig
#endif
switch48=FALSE
switch50=PathBrowse(srchOldSysPath) ;ask for the old system dir
#ifnot (switch50)
goto(endPerformUpgrade)
#endif
ResetTarget(rstTarget2AsOldSys)
switch49=Exists(extOldSysFiles) ; check for the files again
#ifnot (switch49)
goto(loopFindOldSysDir)
#endif
#endif
;if we get here the sys files exist in target2
;this also tells us the type of boot and the version of act.exe to use
; save the act.ini file so actexe.exe can dump it to the reg db
Backup(cpyActIni)
#ifnot (switch48)
Backup(cpyOldSysFiles) ; the files are in a different dir so we need to copy them to system
; no longer use the same files for 16/32 bit
; look for quick tour/db setup wizard sys files
;switch59=VerifyIni(verQTourDBSetupPresent)
;#if (switch59)
; Backup(cpyOldQuikTourDBSetupFiles)
;#endif
#else
Delete( delACT_INI_NLN ) ; NLN = No Longer Needed
#endif
; we're not supporting dual use
switch51=FALSE
; ******* start the copy process for files in [source] ******
SetActiveCopy(ACTAutoUpgrade,reconfig.inf)
switch52=VerifyIni(verActAppPresent)
switch53=VerifyIni(verActPTPPresent)
switch54=VerifyIni(verWPWordPresent)
switch55=VerifyIni(verWPWordMacroPresent)
switch56=VerifyIni(verAppFilterPresent)
switch57=VerifyIni(verCServeExePresent)
switch58=VerifyIni(verLiveUpdatePresent)
switch59=VerifyIni(verQTourDBSetupPresent)
#if (switch58)
; *** set Symantec Shared folders
switch94 = CallProcEx(getSymantecSharedDir)
#ifnot (switch94)
#if (switch41)
ResetTarget(rstSharedNT351)
#else
ResetTarget(rstShared)
#endif
#endif
switch95 = CallProcEx(getLiveUpdateDir)
#ifnot ( switch95 )
#if ( switch41 )
ResetTarget(rstLiveUpdateNT351)
#else
ResetTarget(rstLiveUpdate)
#endif
#endif
; *** Create shared folders
CreateDirectory(crtShared)
CreateDirectory(crtLiveUpdate)
; *** add paths to registry
CallProcEx(regpathLocation1)
CallProcEx(regpathSharedComp)
; CallProcEx(regpathLiveUpdate)
CallProcEx(regpathLiveUpdate1)
#endif
; always select the act executable
SelectOption(AUAct32)
; copy each other section according to what has already been installed
#if (switch52)
SelectOption(AUActApp)
#else
DeselectOption(AUActApp)
#endif
#if (switch53)
SelectOption(AUActPTP)
#else
DeselectOption(AUActPTP)
#endif
#if (switch54)
SelectOption(AUWPWord)
#else
DeselectOption(AUWPWord)
#endif
#if (switch55)
SelectOption(AUWPWordMacro)
#else
DeselectOption(AUWPWordMacro)
#endif
#if (switch56)
SelectOption(AUAppFilter)
#else
DeselectOption(AUAppFilter)
#endif
#if (switch57)
SelectOption(AUCServeExe)
#else
DeselectOption(AUCServeExe)
#endif
#if (switch58)
SelectOption(AULiveUpdate)
#else
DeselectOption(AULiveUpdate)
#endif
#if (switch59)
SelectOption(AUQTourDbSetup)
#else
DeselectOption(AUQTourDbSetup)
#endif
Copy()
CallProcEx(regpathAct30)
CallProcEx(regpathInstallDir)
;*** register Install information
;CallProcEx(regComponents95)
CallProcEx(regOSVersion95)
; *** Create program group
Groups()
; Set up the OLE information for 95/NT only
CallProcEx( execACTReg )
; *** execute Wintdist.exe
#if (switch56)
CallProcEx(execWintdist)
#endif
#if (switch86)
; *** add WinFax info to WIN.INI (if WinFax installed)
switch17=VerifyIni( verWinFaxInstalled )
#if ( switch17 )
AddToIni(addWinfaxPhBkLnk)
AddToIni( addWinfaxPhSrv )
#endif
#endif
switch10=IsFileInUse()
; If Act App installed, run the ACT! DLL Loader app.
#if ( switch52 )
#ifnot ( switch10 ) ; Don't launch if reboot required.
CallProcEx( execACTLDR )
#endif
#endif
#if (switch58)
Delete(delWintdist)
#endif
UpdateIni(iniAutoUpgdCopied)
Delete(delAutoReconfigFiles)
CallProcEx(remAutoUpgdDir)
UpdateIni(iniAutoUpgdGone)
:endPerformUpgrade
Return()
;************************** Branch desc's ********************************
[infPerformUpgrade]
Script=install.inf
Disks=disks.inf
SubDir=autorcon
Section=PerformUpgrade
;********************* checks for installed components ********************
[verDualBoot]
IniName = c:\msdos.sys
SectionName = Options
BootMulti = 1
[verActIniPresent]
IniName = %s\act.ini,TARGET2
SectionName = Global
First Run<I> = 0
; this needs to be [source] because it is accessed before the branch in the script
[verAutoUpgradePresent]
IniName = %s\setup.ini,SOURCE
SectionName = Components
AutoUpgrade = 1
[verActAppPresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
ActApp = 1
[verActPTPPresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
ActPTP = 1
[verWPWordPresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
WPWord = 1
[verWPWordMacroPresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
WPWordMacro = 1
[verAppFilterPresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
AppFilter = 1
[verCServeExePresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
CServeExe = 1
[verLiveUpdatePresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
LiveUpdate = 1
[verQTourDBSetupPresent]
IniName = %s\setup.ini,TARGET
SectionName = Components
QTourDBSetup = 1
[verAutoUpgdCopied]
IniName = %s\setup.ini,TARGET
SectionName = AutoUpgdProgress
Done = 1
;****************************** ini file mods **************************
[iniAutoUpgdGone]
IniName = %s\setup.ini, TARGET
SectionName = Components
AutoUpgrade = 0
[iniAutoUpgdCopied]
IniName = %s\setup.ini, TARGET
SectionName = AutoUpgdProgress
Done = 1
;************************** file existance checks **********************
[extOldSysFiles]
mfc40.dll, TARGET2
mfc30deu.dll, TARGET2
mfc30fra.dll, TARGET2
mfcans32.dll, TARGET2
mfcoleui.dll, TARGET2
mfcuia32.dll, TARGET2
mfcuiw32.dll, TARGET2
;oc25.dll, TARGET2
;vb40016.dll, TARGET2
;*************************** Directory assignments **********************
[rstTargetIsSource]
reset = TARGET
location = "%s", SOURCE
[rstTarget1IsSource]
reset = TARGET1
location = "%s", SOURCE
[rstTarget1AsSystem]
reset = TARGET1
location = "%s", SYSTEM
[rstTarget2AsSystem]
reset = TARGET2
location = "%s", SYSTEM
[rstTarget3AsOldWin]
reset = TARGET3
location = "%s", WINDOWS
[rstTarget2AsOldSys]
reset = TARGET2
location = "%s\system", TARGET3
[rstShared]
reset = TARGET5
location = "c:\Program Files\Symantec"
[rstSharedNT351]
reset = TARGET5
location = "c:\symantec"
[rstLiveUpdate]
Reset = TARGET6
Location = "%s\LiveUpdate", TARGET5
[rstLiveUpdateNT351]
reset = TARGET6
Location = "%s\LiveUpdt", TARGET5
[rstAutoUpgrade]
reset = TARGET21
location = "%s\autorcon", TARGET
;********************** function calls **************************
[LoadMe]
dll = siwact16.dll
function = LoadMe
[FreeMe]
dll = siwact16.dll
function = FreeMe
[IsWindow95]
dll = siwact16.dll
function = IsWin95
[IsWindowNT]
dll = siwact16.dll
function = IsWinNT
[IsWinNT40]
dll = siwact16.dll
function = IsNT40
[IsWin32s]
dll = siwact16.dll
function = Win32sStatus
;*********************** copy sections ***************************
[ACTAutoUpgrade:CopyDialog]
caption = "Installing ACT! Auto Reconfiguration Files..."
[ACTAutoUpgrade]
copymain.AUSetup, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AUAct32, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AUActApp, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AUActPTP, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AUWPWord, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AUWPWordMacro, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AUAppFilter, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AUCServeExe, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
copymain.AULiveUpdate, "Auto Reconfiguration Files - %1dK", 0,N,Y,Y ;all auto upgrade files
[ACTDelAutoUpgrade:CopyDialog]
caption = "Removing ACT! Auto Reconfiguration Data Files..."
[ACTDelAutoUpgrade]
copymain.AUDelete, "Auto Reconfiguration Files - %1dK", 0,Y,Y,Y ;all auto upgrade files
;*********************** Dialogs ****************************
; dialog boxes
[msgAskReconfig]
caption = "ACT! - Auto Reconfiguration System"
"ACT! must be reconfigured to run under Win 95/NT before it can be used."
" "
"Press OK to proceed with the reconfiguration."
[msgBadOppSys]
Caption = "ACT! - Auto Reconfiguration System"
"The ACT! Auto Reconfiguration System can only be executed under Win 95/NT."
" "
"Press OK to Exit."
[msgAskSysPath]
Caption = "ACT! - Auto Reconfiguration System"
"Certain files from the old Windows 3.1 directory need to be copied into the Windows 95/NT directory."
"If the directory no longer exists, ACT! will need to be re-installed from the distribution disk set."
" "
"Press OK to select the Windows 3.1 directoy."
[msgBrowseAgain]
caption = "ACT - Auto Reconfiguration System"
"The directory you specified did not contain the required files. Would you like to select a different path?"
[srchOldSysPath]
Caption = "ACT - Browse for the old Windows 3.1 Directory"
reset = TARGET3
DefaultDir = c:\
;************************* manual copies ******************************
[cpyOldSysFiles]
mfc40.dll, mfc40.dll, TARGET2,TARGET1
mfc30deu.dll, mfc30deu.dll, TARGET2,TARGET1
mfc30fra.dll, mfc30fra.dll, TARGET2,TARGET1
mfcans.dll, mfcans.dll, TARGET2,TARGET1
mfcoleui.dll, mfcoleui.dll, TARGET2,TARGET1
mfcuia32.dll, mfcuia32.dll, TARGET2,TARGET1
mfcuiw32.dll, mfcuiw32.dll, TARGET2,TARGET1
[cpyOldQuikTourDBSetupFiles]
oc25.dll, oc25.dll, TARGET2,TARGET1
vb40016.dll, vb40016.dll, TARGET2,TARGET1
comdlg16.ocx, comdlg16.ocx, TARGET2,TARGET1
threed16.ocx, threed16.ocx, TARGET2,TARGET1
[cpyActIni]
act.ini, act.ini, TARGET3,TARGET
;*********************** Setup related function calls **********************
[rwNewInstallDlls]
serial16.dll, WINDOWS
sfttree.dll, WINDOWS
siwact16.dll, WINDOWS
[rwIsNT40]
isnt40.exe, WINDOWS
[rwLUClean]
luclean.exe, TARGET
[bakExamReg]
exam_reg.exe, exam_reg.exe, SOURCE, WINDOWS
[bakIsNT40]
isnt40.exe, isnt40.exe, SOURCE, WINDOWS
[bakNewInstallDlls]
serial16.dll, serial16.dll, SOURCE, WINDOWS
sfttree.dll, sfttree.dll, SOURCE, WINDOWS
siwact16.dll, siwact16.dll, SOURCE, WINDOWS
;_syminst.exe, _syminst.exe, SOURCE, TEMPDIR
;_symshel.exe, _symshel.exe, SOURCE, TEMPDIR
;siwact16.dll, siwact16.dll, SOURCE, WINDOWS
;siwfmod.exe, siwfmod.exe, SOURCE, TEMPDIR
[delNewInstallDlls]
serial16.dll, WINDOWS
sfttree.dll, WINDOWS
siwact16.dll, WINDOWS
;_syminst.exe, TARGET
;_syminst.pif, TARGET
;_symshel.exe, TARGET
;siwfmod.exe, TARGET
;setup.exe, TARGET
[delExamReg]
exam_reg.exe, WINDOWS
[delIsNT40]
isnt40.exe, WINDOWS
[delLUClean]
luclean.exe, TARGET
[delWintdist]
wintdist.exe, TARGET
[delACT_INI_NLN]
act.ini, WINDOWS
;************************ Registration functions **********************
[regpathAct30]
dll = siwact16.dll
function = SavePathToRegistry
HKEY = 2
Subkey = "SOFTWARE\Symantec\InstalledApps"
value = "ACT30"
path = TARGET
[regpathInstallDir]
dll = siwact16.dll
function = SavePathToRegistry
HKEY = 2
Subkey = "SOFTWARE\Symantec\ACT!\Install\3.0"
value = "InstallDir"
path = TARGET
[regComponents95]
dll = siwact16.dll
function = RegisterComponents
path = TARGET
type = 2
[regOSVersion95]
dll = siwact16.dll
function = RegisterOSVersion
path = TARGET
type = 2
[execACTREG]
dll = siwact16.dll
function = WinExecFile
path = TARGET
exe = "ACTREG.EXE"
options = "/S"
[execWintdist]
dll = siwact16.dll
function = WinExecFile
path = TARGET
exe = "wintdist.exe"
options = "/Q"
[addWinfaxPhBkLnk]
IniName = %s\win.ini, WINDOWS
SectionName = WfxPbLinks
"ACT! 3.0 Phone Book"="2,%s\ACT.EXE,ActWin3,ActWinPb,Act3PhoneBookClass",TARGET
[addWinfaxPhSrv]
IniName = %s\win.ini, WINDOWS
SectionName = "WfxPbSrv-ACT! 3.0 Phone Book"
EntireRecord=2
SearchOn="1,1,1,0,0,0,1,1,1,1,1"
SortOn="1,1"
[execACTLDR]
dll = siwact16.dll
function = WinExecFile
path = TARGET
exe = "ACTLDR.EXE"
options = " "
;****************************** Groups ********************************
[GROUPS]
"ACT! 3.0 for Windows", act30.grp
"StartUp", startup.grp
[ACT! 3.0 for Windows]
"ACT! 3.0", act.exe, AUActApp
"ReadMe", readme.txt, AUActApp
"Tips for ACT! 2.0 users", act2-3.txt, AUActApp
"Uninstall", setup.exe, AUActApp , , , , , "/U",
[StartUp]
"ACT! Speed Loader", actldr.exe, AUActApp
;**************************** Live Update Stuff ************************
[getSymantecSharedDir]
dll = siwact16.dll
function = FindSymantecDir
path = TARGET5
[getLiveUpdateDir]
dll = siwact16.dll
function = FindLiveUpdateDir
path = TARGET6
Symantec = TARGET5
[regpathLocation1]
dll = siwact16.dll
function = SavePathToRegistry
HKEY = 2
Subkey = "SOFTWARE\Symantec\SharedUsage"
value = "Location1"
path = TARGET5
[regpathLiveUpdate]
dll = siwact16.dll
function = SavePathToRegistry
HKEY = 2
Subkey = "SOFTWARE\Symantec\SharedUsage"
value = "LiveUpdate"
path = TARGET6
[regpathLiveUpdate1]
dll = siwact16.dll
function = SavePathToRegistry
HKEY = 2
Subkey = "SOFTWARE\Symantec\SharedUsage"
value = "LiveUpdate1"
path = TARGET6
[regpathSharedComp]
dll = siwact16.dll
function = SavePathToRegistry
HKEY = 2
Subkey = "SOFTWARE\Symantec\ACT!\Install\3.0"
value = "SharedComponents"
path = TARGET5
[crtShared]
"%s", TARGET5
[crtLiveUpdate]
"%s", TARGET6
; ***************** Files to Delete when done *****************
[delAutoReconfigFiles]
luclean.exe, SOURCE
act.exe, SOURCE
cdil32.dll, SOURCE
actole.dll, SOURCE
actole.tlb, SOURCE
actreg.exe, SOURCE
msvcrt40.dll, SOURCE
sh30w32.dll, SOURCE
ctl3d32.dll, SOURCE
actldr.exe, SOURCE
actldr.txt, SOURCE
gcl52fw.dll, SOURCE
wp7reg.exe, SOURCE
actwp70.dll, SOURCE
act_mn97.dot, SOURCE
psion3.flt, SOURCE
p3res.dll, SOURCE
liveupdt.hct, SOURCE
liveupdt.hst, SOURCE
s32luhf1.dll, SOURCE
s32luis1.dll, SOURCE
s32live1.dll, SOURCE
hscript.scp, SOURCE
s32luhm1.dll, SOURCE
s32luuz1.dll, SOURCE
wintdist.exe, SOURCE
actptp.exe, SOURCE
msvcrt20.dll, SOURCE
vb40032.dll, SOURCE
quiktour.exe, SOURCE
startwiz.exe, SOURCE
comdlg32.ocx, SOURCE
olepro32.dll, SOURCE
threed32.ocx, SOURCE
wprep.awf, SOURCE
ace.flt, SOURCE
[remAutoUpgdDir]
dll = siwact16.dll
function = RemoveDirectory
TARGET = 21